package com.lottery.service.pc28.wealthService.impl.config;



/**
 * 配置公共参数
 */
public final class AliPayConfig {
    /**
     * 应用号
     */
    public static String APP_ID = "";
    /**
     * 商户的私钥
     */
    public static String APP_PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAL6mYO0Lu6iIJTYrpHbwHmOIjueBSLc8ssh657UzDB6X00282ZmXBr0opouUeKEjJBcpnVWXthRMpIamJney/xuLSv1HntmFto2nYIpwFJFxcfkl86SnIQ4oKOCtErD0WFuXXhFoRgzIcQ/1NcPxYGpSo+MketwIp5MEoSb2PBgtAgMBAAECgYArqiuU3xUR2my7ZW97li8/mK0yNJgU75/67rtW8uQZtag9q70iwkZW2JKccVrXfRbs/yj7y412RL+B31f8HlDy9lnnTi07rFbiJUsYm4hcOCo7i6fxL/vxVRexrggzyhbuyIsyfgEaAgINMxhl3bB9L2VGOVwzHTxOMmiKAbbBuQJBAPPJuowJjDKrl6qsL/mA+ipIz1YJ1uzL9vCd6E/NtjDwBpCRncCTBJxTI2+FtyLb85LOtSWqvV/JGeQMLs67tQ8CQQDIMziz7unDSpGheLrQnKsnzjIAJ4eHjnnzEL0ecJNv9fHGDpvRHdT8zfK19gdQO+VNwlKwAqEkbXC5UQxPMXcDAkA2x09ZhBOylwf/W61z/N05fx7HkHJwxuv36SN4OxsDKAvxlCbETMSuc6f0uTELbizvAe+GRTVEPqXIrkweO+NVAkBAKlKZMRDRW/wTIcvWgvBEgMz7ya+hneOuKQZEVFadAtnr3dDJFGOoZyXMdj9f0uKqqoawDReywjTn4Hcuhq8bAkEA4zT2pZruB3mgyCIvMPVY5Kp3MEOP30RYknBwCwO3Kvxect03pByHv+a7b402g2TaMKetywcFot4T6WAernvQwg==";
  
    /**
     * 支付宝公钥
     */
    public static String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+pmDtC7uoiCU2K6R28B5jiI7ngUi3PLLIeue1Mwwel9NNvNmZlwa9KKaLlHihIyQXKZ1Vl7YUTKSGpiZ3sv8bi0r9R57ZhbaNp2CKcBSRcXH5JfOkpyEOKCjgrRKw9Fhbl14RaEYMyHEP9TXD8WBqUqPjJHrcCKeTBKEm9jwYLQIDAQAB";
    
    /**
     * 异步通知支付结果的url
     */
    public static String PAY_NOTIFY = "http://localhost:8080/CrazyLottery_1.0.0v/wealth/alipayVerifyNotify";
    
    /**
     * 支付宝网关地址(固定)
     */
    private static String GATEWAY = "https://openapi.alipay.com/gateway.do";
    
    /**
     * 编码
     */
    public static String CHARSET = "UTF-8";
    
    /**
     * 参数类型
     */
    public static String PARAM_TYPE = "json";
    /**
     * 成功标识
     */
    public static final String SUCCESS_REQUEST = "TRADE_SUCCESS";
    /**
     * 交易关闭回调
     */
    public static final String TRADE_CLOSED = "TRADE_CLOSED";
   
    /**
     * 支付宝请求客户端入口
     */
   // private volatile static AlipayClient alipayClient = null;

    /**
     * 不可实例化
     */
    private AliPayConfig(){};

    /**
     * 双重锁单例
     * @return 支付宝请求客户端实例
     */
//    public static AlipayClient getInstance(){
//        if (alipayClient == null){
//            synchronized (AliPayConfig.class){
//                if (alipayClient == null){
//                    alipayClient = new DefaultAlipayClient(GATEWAY,APP_ID,APP_PRIVATE_KEY,PARAM_TYPE,CHARSET,ALIPAY_PUBLIC_KEY);
//                }
//            }
//        }
//        return alipayClient;
//    }

}
